import http from '@/utils/request'
export default {
  queryTreeRightMenus: {
    url: `api/menu/query-tree-right-menus`,
    name: '菜单表-鉴权查询',
    post: async function () {
      return await http.post(this.url)
    }
  },
  queryByMenuName: {
    url: `api/menu/query-by-menu-name`,
    name: '菜单表-根据菜单标题模糊查询',
    post: async function (data) {
      return await http.post(this.url, data)
    }
  },
  save: {
    url: `api/menu/save`,
    name: '菜单表-保存',
    post: async function (data) {
      return await http.post(this.url, data)
    }
  },
  modify: {
    url: `api/menu/modify`,
    name: '菜单表-修改',
    post: async function (data) {
      return await http.post(this.url, data)
    }
  },
  delete: {
    url: `api/menu/delete/`,
    name: '菜单表-删除',
    get: async function (data) {
      return await http.get(this.url + data)
    }
  },
  deleteBatch: {
    url: `api/menu/delete-batch`,
    name: '菜单表-删除',
    post: async function (data) {
      return await http.post(this.url , data)
    }
  },
  getMenuTree4Bind: {
    url: `api/menu/get-menu-tree-4-bind`,
    name: '菜单表-角色绑定菜单',
    post: async function (data) {
      return await http.post(this.url , data)
    }
  }
}